#ifndef __CONFIGWIDGET_DB_H__
#define __CONFIGWIDGET_DB_H__

#include <QtGui/QVBoxLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QGridLayout>

#include <QtGui/QWidget>
#include <QtGui/QLabel>
#include <QtGui/QComboBox>
#include <QtGui/QLineEdit>
#include <QtGui/QGroupBox>
#include <QtGui/QPushButton>

#include "config.h"

namespace verema
{

class ConfigWidget_Db : public QWidget
{
Q_OBJECT

public:
	ConfigWidget_Db(QWidget*);
	~ConfigWidget_Db() {};

    void loadData();

signals:

    void configChanged();

private slots:
	void definitionChange();
	void saveDefinitions();
	void close();

private:
    QVBoxLayout vbl_mainlayout;
    QGridLayout grl_top_layout;
    QHBoxLayout hbl_button_layout;
	QLabel lbl_database_type, lbl_database_name;
    QComboBox cmb_database_type;
    QLineEdit led_database_name;
	QPushButton btn_save, btn_cancel;

	QWidget *configWidget;


};

} // namespace verema

#endif // __CONFIGWIDGET_DB_H__
